/**
 * 
 */
package com.google.code.cisx.wfe.events;

/**
 * @author <a href='mailto:rthakur@bravurasolutions.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $d$
 * @deprecated Experimental. might not be used.
 */
public class WorkflowEvent extends TypedEvent {

    public enum WorkflowEventType implements EventType {

        /**
         * Implies that a Case has been initialised and about to start
         * processing.
         */
        WORKFLOW_INITIALISED("Case Initialised"),

        /**
         * Implies that a Case has finished and is terminated.
         */
        WORKFLOW_TERMINATED("Case Terminated"), ;

        private String type;

        /**
         * @param type
         */
        private WorkflowEventType(String type) {
            this.type = type;
        }

        @Override
        public String asString() {
            return type;
        }

    }

    public WorkflowEvent(Object source, EventType type) {
        super(source, type);
        // TODO Auto-generated constructor stub
    }
}
